package com.example.demo1.web;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import java.util.HashMap;
import java.util.Map;
@Controller
public class indexCountorller01 {
    @RequestMapping (value = "/a")
    @ResponseBody
    public String say(){
        return "say:1234";
    }
    @RequestMapping(value = "/b")
    public  @ResponseBody
    Map<String,Object> mapvlue(){
        Map<String,Object> retMap=new HashMap<String, Object>();
        retMap.put("passage","SpringBoot Project");
         return retMap;
    }

}